﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;
using WisDom.SmartTMS.Enums;

namespace WisDom.SmartTMS.Entity
{
    /// <summary>
    /// 人事入职
    /// </summary>
    public class PersonnelEntry : AuditedEntity<Guid>
    {

        /// <summary>
        /// 查询
        /// </summary>
        public PersonnelEntry()
        {

        }

        /// <summary>
        /// 添加
        /// </summary>
        public PersonnelEntry(Guid Id, string EntryName, string DepId, string Position, DateTime ComeTimes, DateTime CreateTimes, DateTime ContracTimes,int ApprovalSeate, string Principal, string Approver, Guid? creatorId)
        {
            this.Id = Id;
            this.EntryName = EntryName;
            this.DepId = DepId;
            this.Position = Position;
            this.Principal = Principal;
            this.ComeTimes = ComeTimes;
            this.ContracTimes = ContracTimes;
            this.ApprovalSeate = ApprovalSeate;
            this.CreateTimes = CreateTimes;
            this.Approver = Approver;
            CreatorId = creatorId;        //创建者
        }

        //姓名
        public string EntryName { get; set; }
        //部门
        public string DepId { get; set; }
        //职位
        public string Position { get; set; }
        //到岗时间
        public DateTime ComeTimes { get; set; }
        //创建时间
        public DateTime CreateTimes { get; set; }
        //合同签署日期
        public DateTime ContracTimes { get; set; }
        //审核状态
        public int ApprovalSeate { get; set; }
        //上级负责人
        public string Principal { get; set; }
        //审核人
        public string Approver { get; set; }
    }
}
